#include "decode.h"
vector<int> decode(vector<int> &encoded, int first) {
<<<<<<< HEAD:cxx/algorithm/src/decode.cc
    vector<int>result({first});
    for(auto num:encoded){
        result.push_back(first^num);
        first = first^num;
    }
    return result;
=======
  vector<int> result({first});
  for (auto num : encoded) {
    result.push_back(first ^ num);
    first = first ^ num;
  }
  return result;
>>>>>>> dev:cxx/algorithm/common/src/decode.cc
}